import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import Pie from '@feidao/widgets/fd-wh000005';

export default async function a004(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const pie = fd.data.node.querySelector<Pie>('#fd-wh000005-005');
	const img_url = pie.get_data_url();
	const img = fd.data.node.querySelector<HTMLImageElement>('#fd-wh000005-006');
	img.src = img_url;
}
